package com.itheima.d10_api_object;
/*
    Object类 :
        toString方法
        equals方法
 */
public class Test1 {
    public static void main(String[] args) {
        Student student = new Student("阿布",28);
        Student student2= new Student("阿布",24);
//        String s = student.toString();
//        System.out.println(student);
//        System.out.println(s);
        System.out.println(student.equals(student2));

    }
}












